package net.gyapp.markim.module.contact.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.easyder.wrapper.core.manager.ImageManager;

import net.gyapp.markim.R;
import net.gyapp.markim.module.basic.base.BaseRecyclerHolder;
import net.gyapp.markim.module.contact.vo.NewFrinedsVo;

/**
 * Author:  winds
 * Data:    2018/7/31
 * Version: 1.0
 * Desc:
 */


public class NewFriendsAdapter extends BaseQuickAdapter<NewFrinedsVo.NewUserFriendsBean, BaseRecyclerHolder> {
    public NewFriendsAdapter() {
        super(R.layout.item_new_frined);
    }

    @Override
    protected void convert(BaseRecyclerHolder helper, NewFrinedsVo.NewUserFriendsBean item) {
        ImageManager.load(mContext, (ImageView) helper.getView(R.id.iv_header), item.userAvatar, R.drawable.placeholder_header);
        helper.setText(R.id.tv_name, item.nick);
        helper.addOnClickListener(R.id.tv_agree);
        helper.addOnClickListener(R.id.tv_reject);
    }
}
